package cc.wsyw126.java.jvm.testStatic;

/**
 * Created by Administrator on 2017/4/14.
 */
public class MyClass extends Test {
    Person person = new Person("MyClass");

    static {
        System.out.println("myclass static");
    }

    public MyClass() {
        System.out.println("myclass constructor");
    }

    public static void main(String[] args) {
        new MyClass();
    }
}
/*
执行顺序
test static
myclass static
person static
person Test
test constructor
person MyClass
myclass constructor
 */